import { webInstance } from '@/utils/http'

// 前台 - 获取文章列表
export const getArticleList = (params) => {
    return webInstance.get('/article/list', { params })
}

// 前台 - 获取文章详情
export const getArticleDetail = (id) => {
    return webInstance.get(`/article/${id}`)
}

// 前台 - 获取分类列表
export const getCategoryList = () => {
    return webInstance.get('/category/list')
}

